import request from '@/utils/request'
// 登陆
export function login(username, password, code, uuid) {
  return request({
    url: 'biz/auth/login',
    method: 'post',
    data: {
      username,
      password,
      code,
      uuid
    }
  })
}
// 获取用户信息
export function getInfo() {
  return request({
    url: 'biz/auth/info',
    method: 'get'
  })
}
// 登陆验证码
export function getCodeImg() {
  return request({
    url: 'biz/auth/imgCode',
    method: 'get'
  })
}
// 登出
export function logout() {
  return request({
    url: 'biz/auth/logout',
    method: 'delete'
  })
}
